<?php
/*
 *      picture.php
 *      
 *      Copyright 2011 root <root@godfather.typhoon.tycoon>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 *      
 *      
 */

?>
<style>
	#img{
		max-width:150px,
		max-height:120px,
	}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<div id="container">
   
    <div id="imglist" align="center">
        <div class="imgfor">
		<?php 
			if(sizeof($contacts) == 0){
				echo $this->lang->line('lang.i18n.messages.form.empty');
				return;
				}
		?>
		<table width="100%">
			<tr>
				<th><?=$this->lang->line('lang.i18n.messages.form.name');?></th>
				<th><?=$this->lang->line('lang.i18n.messages.form.address');?></th>
				<th><?=$this->lang->line('lang.i18n.messages.form.email');?></th>
				<th><?=$this->lang->line('lang.i18n.messages.form.phone');?></th>
				<th><?=$this->lang->line('lang.i18n.messages.form.comment');?></th>
				<th></th>
			</tr>
			
			<!-- Looping Array Image -->
			<?php foreach($contacts as $contact) {?>
			<tr>
				<td align="center" width="150px"><?=$contact->name;?></td>
				<td align="center" width="200px"><?=$contact->address;?></td>
				<td align="center" width="100px"><?=$contact->email;?></td>
				<td align="center" width="100px"><?=$contact->phone;?></td>
				<td align="center"><?=$contact->content;?></td>
				<td width="100px">
					<a class="adel" href="<?=site_url('contact_admin/delete/del/'.$contact->id); ?>" onclick='return confirm("<?=$this->lang->line('lang.i18n.messages.object.confirm');?>")'>
					<?=$this->lang->line('lang.i18n.messages.object.delete');?></a>
				</td>
			</tr>
			<?php } ?>
			<tr>
			<td colspan="5" align="center"><div class="bottom">
            <?=$this->pagination->create_links(); ?>
        </div></td>
			</tr>
        </table>
    
    <div class="clear"></div>
</div> <!-- end div container -->